#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>

int main()
{
	const double pi = acos(-1.0);
	double r, h, s1, s2, s = 0.0;
	scanf("%lf %lf", &r, &h);
	s1 = pi * r * r;
	s2 = 2 * pi * r * h;
	s = 2 * s1 + s2;
	printf("Area = %.3f\n", s);
	return 0;
}